//
//  YHViewController.m
//  YHOptionTableView
//
//  Created by 林宁宁 on 11/26/2021.
//  Copyright (c) 2021 林宁宁. All rights reserved.
//

#import "YHViewController.h"

@interface YHViewController ()

@end

@implementation YHViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
	// Do any additional setup after loading the view, typically from a nib.
    
    
    YHOptionTableViewItem * item = YHOptionTableItemInitTitle(@"model1", YES, YES);
    [item setCellClickBlock:^(NSIndexPath * _Nonnull indexPath, YHOptionTableViewItem * _Nonnull passItem) {
        
    }];
    [self addOptionItem:item];
    
    item = YHOptionTableItemInitTitle(@"model2", YES, YES);
    [item setCellClickBlock:^(NSIndexPath * _Nonnull indexPath, YHOptionTableViewItem * _Nonnull passItem) {
            
    }];
    [self addOptionItem:item];
    
    item = YHOptionTableItemInitTitle(@"model3", YES, YES);
    [item setCellClickBlock:^(NSIndexPath * _Nonnull indexPath, YHOptionTableViewItem * _Nonnull passItem) {
            
    }];
    [self addOptionItem:item];
    
    [self reloadContentView];
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
